home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
e2_v321.zip
/
E_REF
< prev
next >
Wrap
Text File
|
1991-03-29
|
17KB
|
646 lines
USING THE RAND EDITOR E
Mike O'Carroll
Microsystems Unit
University of Leeds
1. INTRODUCTION
This quick-reference manual assumes that you are familiar with the basic
operation of ned, an earlier version of e. If not, well, it's not that
difficult, anyway.
The editor may be used on any Lear Siegler type terminal (adm3a, adm5) or
equivalent. An IBM PC running uc has its keyboard programmed on start up;
the equivalent keys are indicated in column 3 below.
2. NOTATION
The sequence ^X means control-X, <NAME> means the key called NAME and N is
an integer. (CV), (CH) and (CVH) mean vertical, horizontal and diagonal
cursor move sequences respectively. <CMD> will normally be the <ESCAPE>
key.
The term close means that text is deleted and the space is closed up, while
erase means that the deletion is replaced by white space. References to
this file or current file mean the file which is in the active window indi-
cated by solid borders.
3. CURSOR MOVEMENT
cursor down @south@
cursor up @north@
cursor right @east@
cursor left @west@
cursor to top LH corner (home) <HOME> <Home>
cursor to bottom LH corner (end) <CMD><HOME> <End>
cursor to last line <CMD>@south@
cursor to first line <CMD>@north@
cursor to end of line <CMD>@east@
cursor to beginning of line <CMD>@west@
tab right <TAB> @east@|
tab left ^] |@west@
4. ENDING THE EDIT
exit and save all touched files ^Z
abort but save keystrokes ^E^Z
Other methods of exiting are described under the EXIT heading.
- 2 -
5. WINDOW MOVEMENT
down one page ^V <PgDn>
up one page ^G <PgUp>
down 10 lines ^D
up 10 lines ^U
down N pages <CMD>N^V
up N pages <CMD>N^G
down N lines <CMD>N^D
up N lines <CMD>N^U
down, put current line at top <CMD>^D
up, put current line at bottom <CMD>^U
down to end of file <CMD>^V
up to top of file <CMD>^G
right 16 columns ^R
left 16 columns ^X
right N columns <CMD>N^R
left N columns <CMD>N^X
right, put current column at left <CMD>^R
left, put current column at right <CMD>^X
mark first cursor position ^B <F3>
mark second position, goto first ^B
remove marks <CMD>^B <F6>
Note that any attempt to move the cursor beyond a window edge will cause
the window to shift in the appropriate direction. WARNING: marks delimit
the active area for block edit functions (qv).
6. CHARACTER EDITING
toggle insert/overwrite mode ^O <Ins>
erase/close character to left <RUB>
close character to right ^N <Del>
erase all chars to right <CMD>^N
erase/close all chars to left <CMD><RUB>
In insert mode, <RUB> closes, otherwise it erases.
7. LINE EDITING
insert blank line above current ^_ <F1>
delete current line ^Y <F2>
erase current line ^E^Y <Ctrl-F2>
split current line at cursor ^E^ <Alt-F1>
join next line to current ^E@south@ <Alt-F2>
See also the block editing functions.
8. STRING SEARCHES
search down for string <CMD>string^F
search up for string <CMD>string^T
search down for word at cursor <CMD>^F
search up for word at cursor <CMD>^T
repeat search down/up ^F/^T <F9>/<F10>
do current replacement (qv) ^E^E
do current, search for next ^E^F <Alt-F9>
do current, search for previous ^E^T <Alt-F10>
- 3 -
9. BLOCK EDITING
Block moves are achieved using the close, erase and pick buffers; use of
the last allows copying of text.
insert a blank line ^_ <F1>
insert N blank lines <CMD>N^_
insert several blank lines ^B(CV)^_
insert a blank block ^B(CVH)^_
pick up current line ^A <F4>
pick up N lines <CMD>N^A
pick up several lines ^B(CV)^A
pick up several columns ^B(CH)^A
pick up a rectangular block ^B(CVH)^A
put down last picked block <CMD>^A <F5>
close current line ^Y <F2>
close N lines <CMD>N^Y
close several lines ^B(CV)^Y
close several columns ^B(CH)^Y
close a rectangular block ^B(CVH)^Y
put down last closed block <CMD>^Y <F7>
erase current line ^E^Y <Ctrl-F2>
erase N lines <CMD>N^E^Y
erase several lines ^B(CV)^E^Y
erase several columns ^B(CH)^E^Y
erase a rectangular block ^B(CVH)^E^Y
put down last erased block <CMD>^E^Y <Ctrl-F7>
close next word ^E^N
put down last closed word <CMD>^E^N
10. MISCELLANEOUS
set a tab stop at cursor ^@at@ use TAB
remove the tab stop at cursor <CMD>^@at@ command
remove all tabs ^E^@at@ below
redraw a clean screen ^E<HOME> <Ctrl-Home>
interrupt search or replace (qv) ^C
switch to next window (qv) ^W <Alt-F8>
put alternate file (qv) in
current window ^E^W <F8>
recall previous command string ^E^A <Alt-F5>
11. INTERNAL COMMANDS
These are built-in commands which require a combination of control and
printing characters; they are always given on the command line. Some of
them duplicate functions described above.
11.1. BOX
draw a box ^B(CVH)<CMD>box<CR>
If (CVH) is (CH) only, a horizontal line will be drawn. To draw a vertical
line, make (CVH) such that (CH) moves one column only.
- 4 -
11.2. CENTRE
centre current line <CMD>cen<CR>
centre N lines <CMD>N cen<CR>
centre several lines ^B(CV)<CMD>cen<CR>
insert original text <CMD>ins a<CR>
The width (default 74) for centering, filling and justifying may be changed
using SET.
11.3. CLOSE
close current line <CMD>clo<CR>
close N lines <CMD>clo N<CR>
close a block ^B(CVH)<CMD>clo<CR>
restore last closure <CMD>-clo<CR>
11.4. COMMAND MODE
enter command mode <CMD>com<CR>
leave command mode <CMD>-com<CR>
11.5. COVER
Normally, when text blocks are put down, existing material is pushed down
(for vertical blocks) or sideways (for horizontal or rectangular blocks).
This command causes the dropped text to overwrite what is there.
cover with pick buffer <CMD>cov p<CR>
cover with close buffer <CMD>cov c<CR>
cover with erase buffer <CMD>cov e<CR>
11.6. DELETE
delete current file (permanently) <CMD>del<CR>
11.7. EDIT
edit another file in this window <CMD>e altfile<CR>
switch to alternate file (if any) <CMD>e<CR>
11.8. ERASE
erase current line <CMD>era<CR>
erase N lines <CMD>era N<CR>
erase a block ^B(CVH)<CMD>era<CR>
put back last erasure <CMD>-era<CR>